#ifndef AUDIOTASK_H
#define AUDIOTASK_H

#include <queue>
#include <libavinclude.h>
using namespace std;

class QAudioFormat;
class QAudioOutput;
class Generator;

class AudioTask
{
public:
    AudioTask(AVStream *,AVCodec *);
    ~AudioTask();
public:
    void appendAudioPacket(const AVPacket &);

    double get_audio_clock();
private:
    QAudioFormat *format;

    QAudioOutput *audio;

    Generator  *m_generator;
};

#endif // AUDIOTASK_H
